﻿@model WebBarracoDoSom.Models.Emprestimo

@{
    ViewBag.Title = "Details";
}

<h2>Detalhes</h2>

<fieldset>
    <legend>Emprestimo</legend>

    <div class="display-label">User_ID</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.User_ID)
    </div>

   WebBarracoDoSom.Models.Categoria.Categorias.ElementAt(model.Categoria_ID).Nome)
    <div class="display-label">DataRealizacao</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DataRealizacao)
    </div>

    <div class="display-label">DataDevolucao</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DataDevolucao)
    </div>

    <div class="display-label">Valor</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Valor)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
